package com.dmz.workflow.param;

import com.dmz.workflow.constant.MatrixRoleMaintainType;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * @author: zhouguoqing
 * @date: 2021/09/29/10:27
 */
@Data
public class SaveMatrixRoleMaintainParam implements Serializable {

    /**
     * 矩阵主键id
     */
    @NotNull(message = "矩阵主键id不能为空")
    private Integer matrixId;

    /**
     * 公司
     */
    @NotBlank(message = "公司不能为空")
    private String company = MatrixRoleMaintainType.MATRIX_ROLE_MAINTAIN_COMPANY.value;

    /**
     * 部门
     */
    private String department;

    /**
     * 角色名称（按顺序传）
     */
    @Size(max = 10,message = "矩阵角色超过最大可添加数")
    private List<String> roleNames;
}
